/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 10/2/12
 * Time: 10:45 AM
 * To change this template use File | Settings | File Templates.
 */
package vplib.dictionary {
import alternativa.engine3d.materials.FillMaterial;
import alternativa.engine3d.objects.Mesh;
import alternativa.engine3d.primitives.Box;
import alternativa.engine3d.primitives.GeoSphere;

import mx.validators.StringValidator;

public class SurfacesDictionary {
    public function SurfacesDictionary() {
    }

    public static function getSurface(componentName:String):Mesh {
        var result:Mesh = null;

        switch (componentName) {
            case "MaterialPoint":
                result = new GeoSphere(5, 5);
                result.setMaterialToAllSurfaces(new FillMaterial(0xff0000));
                break;
            case "Body_box":
                result = new Box(10, 10, 10);
                result.setMaterialToAllSurfaces(new FillMaterial(0x999999));
                break;
            case "Body_sphere":
                result = new GeoSphere(20, 20);
                result.setMaterialToAllSurfaces(new FillMaterial(0x999999));
                break;
            case "":
                break;

            default:
                break;
        }

        return result;
    }
}
}
